package com.rest.demo.Controller;

import com.github.wxpay.sdk.WXPay;
import com.github.wxpay.sdk.WXPayConfig;

import java.util.HashMap;
import java.util.Map;


public class PayWX {

    WXPayConfig config;
    public  String test() throws Exception {
config.setAppID("1234");
config.setCertStream(null);
config.setKey("12321");
config.setMchID("111111");
        Map<String, String> reqData =new HashMap<String,String>();
        reqData.put("body","");
        WXPay hh =new WXPay(config);


        hh.unifiedOrder(reqData);
        return "1";
    }


}
